package com.isaac.edu.service.impl;

import com.isaac.edu.dao.ResumeDao;
import com.isaac.edu.pojo.Resume;
import com.isaac.edu.service.IResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ResumeServiceImpl implements IResumeService {
    @Autowired
    ResumeDao resumeDao;

    @Override
    public List<Resume> showList() {
        return resumeDao.findAll();
    }

    @Override
    public Resume getOneResumeInfo(Long id) {
        return null;
    }

    @Override
    public boolean deleteOne(Resume resume) {
        resumeDao.delete(resume);
        return true;
    }

    @Override
    public boolean updateOne(Resume resume) {
        resumeDao.save(resume);
        return true;
    }

    @Override
    public boolean insertOne(Resume resume) {
        resumeDao.save(resume);
        return true;
    }
}
